package com.yinhai.cp_nzw.service.impl;

import com.yinhai.cp_nzw.bean.CP;
import com.yinhai.cp_nzw.mapper.IndexMapper;
import com.yinhai.cp_nzw.service.IndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class IndexServiceImpl implements IndexService {

    @Autowired
    IndexMapper indexMapper;
    @Override
    public int saveCode(CP cp) {
        return indexMapper.insert(cp);
    }

    @Override
    public List<Map<String, Object>> statisticsBlue() {

        return indexMapper.statisticsBlue();
    }
}
